﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Manon.ConfigCenter.Web.ApplicationCore.Dtos.Project
{
    public class SaveProjectInput
    {
        public int Id { get; set; }

        /// <summary>
        /// 存储方式 1共享目录  2 mysql
        /// </summary>
        public int StorageType { get; set; }

        /// <summary>
        /// 项目编码
        /// </summary>
        [Display(Name = "项目编码")]
        [StringLength(100, ErrorMessage = "项目编码长度至少1位，最大长度100位", MinimumLength = 1)]
        [Required(ErrorMessage = "项目编码不能为空!")]
        public string Code { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        [Display(Name = "项目名称")]
        [StringLength(200, ErrorMessage = "项目编码长度至少1位，最大长度200位", MinimumLength = 1)]
        [Required(ErrorMessage = "项目名称不能为空!")]
        public string ProjectName { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderIndex { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        public bool Enabled { get; set; }

    }
}
